package com.jwsoft.manager.core.dao.mapper;


import com.jwsoft.manager.common.vo.student.StudentInfoSearchVO;
import com.jwsoft.manager.common.vo.student.StudentInfoSelectVO;
import com.jwsoft.manager.core.dao.model.EduStudentEnrollPre;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwsoft.manager.core.dao.model.EduhStudentEnrollPre;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
  * 预采集表 Mapper 接口
  * </p>
*
* @author wangtao
* @since 2022-11-25
*/
@Mapper
public interface EduStudentEnrollPreMapper extends BaseMapper<EduStudentEnrollPre> {
    List<StudentInfoSelectVO> searchPersonSelect(StudentInfoSearchVO vo);

    Integer selectCountByYear(@Param("year") Integer year);

    List<EduStudentEnrollPre> selectByYear(@Param("year") Integer year,@Param("pageSize") Integer pageSize);

    Integer deleteByTaskHistory(@Param("taskDetailId") String taskDetailId);

    Integer selectEncryptionCountByYear(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId);

    List<EduhStudentEnrollPre> selectEncryptionByYear(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId,@Param("pageSize") Integer pageSize);
    /**
     * 重置户籍同步状态
     * */
    void resetHjSyncStatus(@Param("year") Integer year, @Param("areaCodeList") List<String> areaCodeList);
    /**
     * 重置房产同步状态
     * */
    void resetFcSyncStatus(@Param("year") Integer year, @Param("areaCodeList") List<String> areaCodeList);
    /**
     * 重置社保同步状态
     * */
    void resetCbSyncStatus(@Param("year") Integer year, @Param("areaCodeList") List<String> areaCodeList);
    /**
     * 重置居住证同步状态
     * */
    void resetJzzSyncStatus(@Param("year") Integer year, @Param("areaCodeList") List<String> areaCodeList);

    /**
     * 重置预报名状态
     * */
    void resetBeforeFlag(@Param("year") Integer year,@Param("schoolCategory")String schoolCategory, @Param("areaCodeList") List<String> areaCodeList);
}
